import os
import pytest
from log import log_connect,email
if __name__ == '__main__':
    log_connect()
    pytest.main(['test_xiadan.py','-s','--alluredir=baogao','--clean-alluredir'])
    os.system('allure generate baogao -o reboothtml --clean')
    email(['weidudiansanglog.txt','./reboothtml/index.html'])